package com.sacc;


import com.sacc.config.DefaultFeignConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author 滚~韬
 * @date 2022/3/28 18:49
 */
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.sacc.clients"},defaultConfiguration = DefaultFeignConfiguration.class)
public class UserCenterApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserCenterApplication.class,args);
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
